package cn.ddiancan.schedule.base.service;

import java.util.List;

import cn.ddiancan.schedule.base.domain.TaskDTO;
import cn.ddiancan.xddcloud.common.entity.CommonResult;
import cn.ddiancan.xddcloud.ddccore.request.PageRequest;
import cn.ddiancan.xddcloud.ddccore.response.PagedResultListInfo;

public interface ITaskTimerService {

    CommonResult<Integer> addTaskTimer(TaskDTO task);

    CommonResult<Integer> updateTaskTimer(TaskDTO task);

    CommonResult<String> flushScheduleTask(TaskDTO task, String operationType);

    int deleteTaskTimer(Long taskId);

    PagedResultListInfo<TaskDTO> getTaskTimer(PageRequest<TaskDTO> pageRequest);

    List<TaskDTO> getAllEnableTaskTimer();

    void taskUP(List<Long> ids);

    void taskDown(List<Long> ids);

    void executeTaskTimer(List<Long> ids);
}
